﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PluginInterface;
using System.Drawing;
using Buccontrols;

namespace Buccailor
{
    class NavigateAction : PluginAction
    {
        public NavigateAction(IPlugin plugin)
        {
            base.name = "navigate";
            base.plugin = plugin;
            base.func = new ActionFunction(this.Navigate);
            base.pars.Add("path", "the path to navigate to");
        }

        public void Navigate(string[] args)
        {
            MainForm mf = (base.plugin.MainInterface as MainForm);
            mf.fileBrowser.Navigate(args[0]);
        }
    }
}
